public class AliPay extends Payment {
    private String number;

    public AliPay(double amount, String number) {
        super(amount);
        this.number = number;
    }

    @Override
    public String getPaymentDetails() {
        return "AliPay Payment: " + amount + ", Card Number: " + number;
    }
}
